import request from '@/utils/request'

// 查询开奖设置列表
export function listAgentState(query) {
  return request({
    url: '/system/agentState/list',
    method: 'get',
    params: query
  })
}

// 查询开奖设置详细
export function getAgentState(id) {
  return request({
    url: '/system/agentState/' + id,
    method: 'get'
  })
}

// 新增开奖设置
export function addAgentState(data) {
  return request({
    url: '/system/agentState',
    method: 'post',
    data: data
  })
}

// 修改开奖设置
export function updateAgentState(data) {
  return request({
    url: '/system/agentState',
    method: 'put',
    data: data
  })
}

// 删除开奖设置
export function delAgentState(id) {
  return request({
    url: '/system/agentState/' + id,
    method: 'delete'
  })
}

// 导出开奖设置
export function exportAgentState(query) {
  return request({
    url: '/system/agentState/export',
    method: 'get',
    params: query
  })
}
